package com.syh.core.ddd.infrastructure.repository.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 所有经营级别数据都继承
 */
@MappedSuperclass
@Data
@EqualsAndHashCode(callSuper = true)
public abstract class SuperBusinessModel extends SuperModel {
  /**
   * 数据归属公司ID
   */
  @Column(name = "BUSINESS_ENTITY_ID", columnDefinition = "bigint COMMENT '数据归属经营主体ID'")
  protected Long businessEntityId;
}
